<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>for</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
<div id="app">

    <table>
        <tr>
            <th>id</th>
            <th>name</th>
            <th>sex</th>
            <th>score</th>
        </tr>

        <tr v-for="user in users">
            <td>{{user.id}}</td>
            <td>{{user.name}}</td>
            <td>{{user.sex}}</td>
            <td>{{user.score}}</td>
        </tr>


    </table>
</div>
</body>
<script>
  new Vue({
      el:"#app",
      data:{
          user:{
              id:15,
              name:'小芋头',
              sex:'男',
              score:150
          },
          users:[
              {
                  id:15,
                  name:'小鬼头',
                  sex:'男',
                  score:150
              },
              {
                  id:15,
                  name:'癞蛤蟆',
                  sex:'男',
                  score:150
              },
              {
                  id:15,
                  name:'机车',
                  sex:'男',
                  score:150
              },



          ]

      },
  });


</script>
</html>